package com.youlu.campus.entity;

import com.youlu.campus.base.base.EntityBase;
import lombok.Getter;
import lombok.Setter;
import org.springframework.data.mongodb.core.index.CompoundIndex;
import org.springframework.data.mongodb.core.index.CompoundIndexes;
import org.springframework.data.mongodb.core.index.Indexed;
import org.springframework.data.mongodb.core.mapping.Document;

/**
 * 用户积分
 */
@Getter
@Setter
@Document("user_points")
public class UserPoints extends EntityBase {
    @Indexed
    private String userId;
    /**
     * 手机号
     */
    private String mobile;
    /**
     * 积分
     */
    private Integer point = 0;
    /**
     * 可用积分
     */
    private Integer availablePoint = 0;

    private String appId;

    private String platform;
}
